import Vue from 'vue'
import App from './App.vue'
import router from './router'
import element from './element';
import moment from 'moment'
import store from './store'
Vue.prototype.$moment = moment
Vue.use(element);


// 图片懒加载
import VueLazyload from 'vue-lazyload'

import 'element-ui/lib/theme-chalk/index.css';
import "./plugins";
moment.locale("zh-cn"); //这里是进行了汉化
Vue.use(element);
Vue.use(VueLazyload, {
	loading: require('../public/static/loading.gif')

});
// 全局API
import * as API from '@/api';
Vue.prototype.$API = API;

Vue.config.productionTip = false;




// css样式重置
import './style/normalize.css';
import './style/reset.css';

Vue.config.productionTip = false;

// 自我安慰 点击同一个路由地址报错问题 其实还是存在 只是不显示
import Router from 'vue-router'
const routerPush = Router.prototype.push
Router.prototype.push = function push(location) {
return routerPush.call(this, location).catch(error=> error)
}

new Vue({
	router,
	store,
	render: (h) => h(App)
}).$mount('#app');
